package com.skyworthclub.competition.beans.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotEmpty;

/**
 * @author li
 * @version 1.0
 * @since 18-10-16 下午11:39
 * 修改密码数据对象
 **/
@Data
public class ResetPasswordDto {

    @NotEmpty
    @Email(message = "请填写正确的邮件地址")
    private String email;
    @NotEmpty
    @Length(min = 6, max = 16, message = "6-16位字符")
    private String newPassword;
    @Length(min = 6, max = 16, message = "6-16位字符")
    private String repeatPassword;
    @Length(min = 6, max = 6, message = "验证码长度不正确")
    private String validationCode;

}
